import Vue from 'vue';
import App from './App';
import './permission'; // permission
import plugins from './plugins'; // plugins
import store from './store'; // store
import * as show from './utils/show';

// 插件引入
import uView from 'uview-ui';
Vue.use(uView)

// 公共方法
import {
	goBack,
	goTab,
	goTo,
} from "@/utils/commonjs.js";
Vue.prototype.goBack = goBack
Vue.prototype.goTo = goTo
Vue.prototype.goTab = goTab

// 组件注册
import FloatingImage from '@/components/dialog/FloatingImage.vue'
// 测算报告
import FloatingReport from '@/components/dialog/FloatingReport.vue'
import typewriterText from '@/components/TypewriterText.vue';
import uniIcons from '@/components/uni-icons/uni-icons.vue';

Vue.component('uni-icons', uniIcons)
Vue.component('typewriterText', typewriterText)//文本think
Vue.component('floating-image', FloatingImage)//助手
Vue.component('floating-report', FloatingReport)//助手

Vue.use(plugins)
Vue.config.productionTip = false
Vue.prototype.$store = store
Vue.prototype.$show = show // 挂载show方法到Vue原型上

App.mpType = 'app'

const app = new Vue({
	...App
})

app.$mount()